package com.luck.emp.entity;

import java.util.Date;

import com.luck.org.entity.VDepartment;
import com.luck.org.entity.VUser;
import com.luck.pf.util.DateUtil;
import com.luck.pf.util.FormateUtil;

/**
 * 说明:ENEITY类 Copyright: Copyright (c) 2011 深圳**科技
 * 
 * @author
 * 
 */
public class EmpTWhAssM implements java.io.Serializable {
	/**
	 * 单据类型
	 **/
	String billType;
	/**
	 * pk 组装拆卸单编号
	 **/
	String assCode;
	/**
	 * 所属机构
	 **/
	Long deptId;
	private VDepartment dept;
	/**
	 * 仓库编码：6位机构号 + 2位机构内编码
	 **/
	String whCode;
	/**
	 * 商品编码
	 **/
	String productCode;
	EmpTProdBase product;
	/**
	 * 数量
	 **/
	Long qty;
	/**
	 * 备注
	 **/
	String note;
	/**
	 * 创建人
	 **/
	private VUser createUser;
	/**
	 * 创建时间
	 **/
	Date createDate;

	public EmpTWhAssM() {
	}

	public String getBillType() {
		return this.billType;
	}

	public void setBillType(String billType) {
		this.billType = billType;
	}

	public String getAssCode() {
		return this.assCode;
	}

	public void setAssCode(String assCode) {
		this.assCode = assCode;
	}

	public Long getDeptId() {
		return this.deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public String getWhCode() {
		return this.whCode;
	}

	public void setWhCode(String whCode) {
		this.whCode = whCode;
	}

	public String getProductCode() {
		return this.productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public Long getQty() {
		return this.qty;
	}

	public void setQty(Long qty) {
		this.qty = qty;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public VDepartment getDept() {
		return dept;
	}

	public void setDept(VDepartment dept) {
		this.dept = dept;
	}

	public EmpTProdBase getProduct() {
		return product;
	}

	public void setProduct(EmpTProdBase product) {
		this.product = product;
	}

	public VUser getCreateUser() {
		return createUser;
	}

	public void setCreateUser(VUser createUser) {
		this.createUser = createUser;
	}


	public String getCreateDateStr() {
		return DateUtil.dateToString(this.createDate, DateUtil.patternE);
	}

	public String getBillTypeStr(){
		return FormateUtil.getInstance().getNameByCode("p_bill_type", this.billType);
	}		
}